From: Giuseppe Scrivano Date: Thu, 30 Oct 2014 09:58:50 +0000 (+0100) Subject: ostree-repo-pull: Fix inverted assert condition for maxdepth X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~1067 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=65c059401195ec1873ad2a04eba93c8438786dbe;p=ostree.git ostree-repo-pull: Fix inverted assert condition for maxdepth Signed-off-by: Giuseppe Scrivano --- diff --git a/src/libostree/ostree-repo-pull.c b/src/libostree/ostree-repo-pull.c index f687ab99..e1ca4351 100644 --- a/src/libostree/ostree-repo-pull.c +++ b/src/libostree/ostree-repo-pull.c @@ -1338,7 +1338,7 @@ ostree_repo_pull_with_options (OstreeRepo *self, (void) g_variant_lookup (options, "depth", "i", &pull_data->maxdepth); } - g_return_val_if_fail (pull_data->maxdepth < -1, FALSE); + g_return_val_if_fail (pull_data->maxdepth >= -1, FALSE); if (dir_to_pull) g_return_val_if_fail (dir_to_pull[0] == '/', FALSE);